//
//  PaletteView.h
//
//  Created by wangzhi on 16/02/22.
//  Copyright (c) 2016年 王志. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PaletteModel.h"

@interface PaletteView : UIView

/**
 *  线条颜色
 */
@property (nonatomic, strong) UIColor *colorLine;

/**
 *  线条宽度
 */
@property (nonatomic, assign) NSInteger widthLine;

/**
 *  存放所有移动过程中的点(包括起始点)
 */
@property (nonatomic, strong) NSMutableArray *movePoints;

/**
 *  存放所有已绘制路径
 */
//@property (nonatomic, strong) NSMutableArray *allPointsArr;

@property (nonatomic, strong) PaletteModel *model;

/**
 *  画线
 */
- (void)fromPointToLineWithContext:(CGContextRef)context withPoingArr:(NSArray *)arr;

/**
 *  撤销
 */
- (void)revoke;

/**
 *  清屏
 */
- (void)clearScreen;

/**
 *  橡皮
 */
- (void)rubLine;


- (void)last;

- (void)next;

@end
